﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LimpaGaragem.BLL.User
{
    public class UserFlagged
    {
        /// <summary>
        /// Return list of user flagged from user
        /// </summary>
        /// <returns></returns>
        public List<LimpaGaragem.Model.User.UserFlagged> GetListOfUserFlaggedFromUser(int IDUser)
        {
            try
            {
                return new LimpaGaragem.DAO.User.UserFlagged().GetListOfUserFlaggedFromUser(IDUser);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        /// <summary>
        /// Return list of user flagged to user
        /// </summary>
        /// <returns></returns>
        public List<LimpaGaragem.Model.User.UserFlagged> GetListOfUserFlaggedToUser(int IDUser)
        {
            try
            {
                return new LimpaGaragem.DAO.User.UserFlagged().GetListOfUserFlaggedToUser(IDUser);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        /// <summary>
        /// Insert new user flagged
        /// </summary>
        public int InsertUserFlagged(int IDUserFlag,
                            int IDUser,
                            string Content)
        {
            try
            {
                return new LimpaGaragem.DAO.User.UserFlagged().InsertUserFlagged(IDUserFlag, IDUser, Content);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
